package com.irdstudio.efp.nls.service.dao;

import com.irdstudio.efp.nls.service.domain.SignatureRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO Interface: 签章记录表
 *
 * @author gcb
 * @date 2020-08-13
 */
public interface SignatureRecordDao {
    /**
     * 新增数据
     *
     * @param signatureRecord
     * @return
     */
    int insert(SignatureRecord signatureRecord);

    /**
     * 根据主键删除信息
     *
     * @param signatureRecord
     * @return
     */
    int deleteByPk(SignatureRecord signatureRecord);

    /**
     * 根据主键更新信息
     *
     * @param signatureRecord
     * @return
     */
    int updateByPk(SignatureRecord signatureRecord);

    /**
     * 根据主键查询详情
     *
     * @param signatureRecord
     * @return
     */
    SignatureRecord queryByPk(SignatureRecord signatureRecord);

    SignatureRecord selectByPst(@Param("prdId") String prdId, @Param("applySeq") String applySeq, @Param("linkType") int linkType);

    List<SignatureRecord> getSignatureNlsList(@Param("prdId") String prdId, @Param("retryNum") int retryNum, @Param("polFileType") String polFileType, @Param("maxNum") int maxNum);


}